/* 编辑器模式*/
export const EnumModelType = {
  default: 'default',
  edit: 'edit'
};

/* 工具栏配置*/
export const EnumToolBarType = {
  undo: { type: 'undo', label: '撤回', icon: 'el-icon-bottom-right' },
  redo: { type: 'redo', label: '重做', icon: 'el-icon-bottom-left' },
  // save: { type: 'save', label: '保存', icon: 'el-icon-folder-checked' },
  refreshLayout: { type: 'refreshLayout', label: '刷新布局', icon: 'el-icon-refresh' },
  autoZoom: { type: 'autoZoom', label: '实际大小', icon: 'el-icon-aim' },
  // addNode: { type: 'addNode', label: '新建节点', icon: 'el-icon-plus' },
  // checkFlow: { type: 'checkFlow', label: '检查流程', icon: 'el-icon-circle-check' }
};

/* node右键菜单项*/
export const EnumNodeContextMenu = {
  // nodeConfig: { label: '节点配置', type: 'nodeConfig', icon: 'el-icon-setting' },
  // directionCondition: { label: '方向条件', type: 'directionCondition', icon: 'el-icon-s-help' },
  // deleteNode: { label: '删除节点', type: 'deleteNode', icon: 'el-icon-delete' }
};
/* 边右键菜单项*/
export const EnumEdgeContextMenu = {
  // deleteEdge: { label: '删除边', type: 'deleteEdge', icon: 'el-icon-delete' }
};
/* 画布右键菜单项*/
export const EnumCanvasContextMenu = {
  // addNode: { label: '添加节点', type: 'addNode', icon: 'el-icon-plus' },
  refreshLayout: { type: 'refreshLayout', label: '刷新布局', icon: 'el-icon-refresh' },
  undo: { type: 'undo', label: '撤回', icon: 'el-icon-bottom-right' },
  redo: { type: 'redo', label: '重做', icon: 'el-icon-bottom-left' },
  clear: { type: 'clear', label: '清空', icon: 'el-icon-document-delete' }
};
/* 右键菜单项集合*/
export const EnumAllContextMenu = {
  ...EnumCanvasContextMenu,
  ...EnumEdgeContextMenu,
  ...EnumNodeContextMenu
};

